package com.ruoyi.gcgl.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ruoyi.common.core.text.Convert;
import com.ruoyi.gcgl.domain.YyProjectNsct;
import com.ruoyi.gcgl.mapper.YyProjectNsctMapper;
import com.ruoyi.gcgl.service.IYyProjectNsctService;

/**
 * 项目内审出图Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-07
 */
@Service
public class YyProjectNsctServiceImpl implements IYyProjectNsctService 
{
    @Autowired
    private YyProjectNsctMapper sjProjectNsctMapper;

    /**
     * 查询项目内审出图
     * 
     * @param id 项目内审出图主键
     * @return 项目内审出图
     */
    @Override
    public YyProjectNsct selectSjProjectNsctById(Long id)
    {
        return sjProjectNsctMapper.selectSjProjectNsctById(id);
    }

    /**
     * 查询项目内审出图列表
     * 
     * @param sjProjectNsct 项目内审出图
     * @return 项目内审出图
     */
    @Override
    public List<YyProjectNsct> selectSjProjectNsctList(YyProjectNsct sjProjectNsct)
    {
        return sjProjectNsctMapper.selectSjProjectNsctList(sjProjectNsct);
    }

    /**
     * 新增项目内审出图
     * 
     * @param sjProjectNsct 项目内审出图
     * @return 结果
     */
    @Override
    public int insertSjProjectNsct(YyProjectNsct sjProjectNsct)
    {
        return sjProjectNsctMapper.insertSjProjectNsct(sjProjectNsct);
    }

    /**
     * 修改项目内审出图
     * 
     * @param sjProjectNsct 项目内审出图
     * @return 结果
     */
    @Override
    public int updateSjProjectNsct(YyProjectNsct sjProjectNsct)
    {
        return sjProjectNsctMapper.updateSjProjectNsct(sjProjectNsct);
    }

    /**
     * 批量删除项目内审出图
     * 
     * @param ids 需要删除的项目内审出图主键
     * @return 结果
     */
    @Override
    public int deleteSjProjectNsctByIds(String ids)
    {
        return sjProjectNsctMapper.deleteSjProjectNsctByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除项目内审出图信息
     * 
     * @param id 项目内审出图主键
     * @return 结果
     */
    @Override
    public int deleteSjProjectNsctById(Long id)
    {
        return sjProjectNsctMapper.deleteSjProjectNsctById(id);
    }
}
